package com.liuyjy.test.domain.xml;

import lombok.Data;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import java.util.UUID;


/**
 * @Author liuyjy
 * @Date 2024/12/26 16:01
 * @Description: header
 * @Version 1.0
 **/
@Data
@XmlAccessorType(XmlAccessType.FIELD)
public class Header {
    /**
     * 接口ID
     */
    @XmlElement(name = "interfaceID")
    public String interfaceID;

    /**
     * 发送方系统唯一编号-审批ID
     */
    @XmlElement(name = "transID")
    public String transID;
    /**
     * 接入方系统唯一编号
     */
    @XmlElement(name = "appID", required = true)
    public String appID = "obj_835790eb15534b339cd823d65e6f6c21";
    /**
     * 消息ID
     */
    @XmlElement(name = "messageID")
    private String messageID = UUID.randomUUID().toString();
    /**
     * 发送方系统名称
     */
    @XmlElement(name = "sender")
    private String sender = "BOEU";
    /**
     * 接收方系统名称
     */
    @XmlElement(name = "receiver")
    private String receiver = "BPM";
    /**
     * 审批单名称
     */
    @XmlElement(name = "appToken")
    private String appToken;

    /**
     * 返回结果-是否成功标识
     */
    @XmlElement(name = "resultType")
    private String resultType;

    /**
     * 返回结果-失败原因
     */
    @XmlElement(name = "resultMessage")
    private String resultMessage;

}
